package org.slf4j.impl;

import com.tfswx.jcyw.print.log.LoggerFactory;
import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

/**
 * @author 张述江
 * @date 2023/12/18
 */
public class StaticLoggerBinder implements LoggerFactoryBinder {

    private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();

    @Override
    public ILoggerFactory getLoggerFactory() {
        return new LoggerFactory();
    }

    @Override
    public String getLoggerFactoryClassStr() {
        return LoggerFactory.class.getName();
    }

    public static StaticLoggerBinder getSingleton() {
        return SINGLETON;
    }
}
